<?php

namespace App\Transformers;

use League\Fractal\TransformerAbstract;

class MySubscribeTransformer extends TransformerAbstract
{

    public function transform($item)
    {


        return [
			'subscribe_id' => $item->subscribe_id,
            "username"=> '',
		    "nickname"=> $item->coachname,
		    "userphone"=> $item->coachphone,
		    "student_id"=> $item->student_id,
		    "putime_id"=> $item->putime_id,
           "ispick_up"=> $item->is_pick_up,
		    "commit_status" => $item->status,
		    "coach_id" => $item->coach_id,
		    "km"=> $item->km,
		    "startime"=> $item->startime,
		    "endtime"=> $item->endtime,
		    "price"=> $item->money,
		    "hours"=> $item->study_time,
		    "chargeback_type" => 0,
		    "status"=> $item->status,
		    "cityid"=>0,
		    "avatar"=> $item->coachphoto,
		    "place"=>'',
		    "state"=> 0,
		    "comment"=> '',
            'is_comment'=>$item->is_comment,
            'is_complained' => $item->is_complained,
        ];
    }


}
